import mock from "mockjs";
import homeApi from "./home";
import userApi from "./user";
import permissionApi from "./permission"
//设置延时，以便axios先拦截request
mock.setup({
  timeout: "200-600",
});
//用户相关
mock.mock("/home/getStatisticalData", "get", homeApi.getStatisticalData);

mock.mock(/\/user\/getUser/, "get", userApi.getUserList);
mock.mock(/\/user\/del/, "get", userApi.deleteUser);
mock.mock(/\user\/batchremove/, "get", userApi.batchremove);
mock.mock(/\/user\/add/, "post", userApi.createUser);
mock.mock(/\/user\/edit/, "post", userApi.updateUser);

// 权限相关
mock.mock(/\/permission\/getMenu/, "post", permissionApi.getMenu);
